package com.ql.design.template;

public abstract class HummerModel {
	
	 public abstract void start();
	 public abstract void stop();
	 public abstract void alarm();
	 public abstract void enginBoom();
	 
	 //空实现方法   
	 public boolean hook() {  
	        return true;  
	   } 
	 
	 public  void run(){
		 start();
		 
		 enginBoom();
		 
		 alarm();
		 
		 if(hook()){
			 stop();
		 }
		 
		// hook();//挂钩  
		 
	 }
 
		
}
